package com.sky;

import io.seata.spring.annotation.datasource.EnableAutoDataSourceProxy;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.amqp.rabbit.annotation.EnableRabbit;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;

@MapperScan(basePackages = {"com.sky.mapper"})
@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients(basePackages = "com.sky.api.**")
@EnableRabbit
@EnableRedisHttpSession
@EnableAutoDataSourceProxy
public class SkyMallOrderApplication {
    public static void main(String[] args) {
        SpringApplication.run(SkyMallOrderApplication.class, args);
    }
}
